#include <Rectangle.h>

Rectangle::Rectangle(unsigned int width, unsigned int height) :
	width(width), height(height) {
}

unsigned int Rectangle::getPerimeter() const {
	return (width + height) * 2;
}

unsigned int Rectangle::getArea() const {
	return width * height;
}

void Rectangle::setWidth(unsigned int width) {
	this->width = width;
}

void Rectangle::setHeight(unsigned int height) {
	this->height = height;
}
